package com.fanqiechaodan.visitor;

import lombok.Data;

/**
 * @author fanqiechaodan
 * @Classname Bird
 * @Description 具体元素;鸟
 */
@Data
public class Bird implements Animal{

    private String name;

    private String habitat;

    public Bird(String name, String habitat) {
        this.name = name;
        this.habitat = habitat;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visitor(this);
    }
}
